
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-hans"
	version="XHTML+RDFa 1.0" dir="ltr" xmlns:th="www.thymeleaf.org">

<head profile="http://www.w3.org/1999/xhtml/vocab">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="misc/favicon.ico"
	type="image/vnd.microsoft.icon" />
<title>编辑账户信息 | 灿然书屋</title>
<link type="text/css" rel="stylesheet"
	href="sites/default/files/css/css_xE-rWrJf-fncB6ztZfd2huxqgxu4WO-qwma6Xer30m4.css"
	media="all" />
<link type="text/css" rel="stylesheet"
	href="sites/default/files/css/css_LS9OUalDR9-d_lCAvF3yUWjNU6yF8ZBm84jEPRvoyuQ.css"
	media="all" />
<link type="text/css" rel="stylesheet"
	href="sites/default/files/css/css_rAWFMaRvev_YVJgRAKK7yVXwsgx9afi98jo7qDGwEf8.css"
	media="all" />
<link type="text/css" rel="stylesheet"
	href="sites/default/files/css/css_NCOSdpoQnWWQHVcfG2o2skDLf8YSjSAlOAadPoELzbo.css"
	media="all" />
<link type="text/css" rel="stylesheet"
	href="sites/default/files/css/css_bdATSoh3o2IK3XRLY7797zuX1tE3-0Stkdq5mD0eflg.css"
	media="all" />

<!--[if lt IE 9]>
<link type="text/css" rel="stylesheet" href="sites/all/themes/dushu/css/fix-ie7.css?q633bi" media="all" />
<![endif]-->

<!--[if lt IE 7]>
<link type="text/css" rel="stylesheet" href="sites/all/themes/dushu/css/fix-ie6.css?q633bi" media="all" />
<![endif]-->
<script type="text/javascript"
	src="sites/default/files/js/js_qikmINIYTWe4jcTUn8cKiMr8bmSDiZB9LQqvceZ6wlM.js"></script>
<script type="text/javascript"
	src="sites/default/files/js/js_KCd8rbJYUruV1tRJnh4um34UYvyhlrSVCPR1jNko2h8.js"></script>
<script type="text/javascript"
	src="sites/default/files/js/js_6uMVSUgDf9ldb_NCxvCamFQoenOq-XcovWYUCJT4HIU.js"></script>
<script type="text/javascript"
	src="sites/default/files/js/js_jK3jPw-FaEDMFWLePXj64ufWL3_TRGTMvUkTlyC5qxs.js"></script>
<script type="text/javascript"
	src="sites/default/files/js/js_xThLSve1PKygorKK3W5JBKVAg5PaB1uw7YAS7kRSzqc.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
	jQuery
			.extend(
					Drupal.settings,
					{
						"basePath" : "\/",
						"pathPrefix" : "",
						"ajaxPageState" : {
							"theme" : "dushu",
							"theme_token" : "-6v9FkvQV9RlZS6XhFoTc8RSyOAe9Mo9WvC9FNXaplI",
							"js" : {
								"0" : 1,
								"misc\/jquery.js" : 1,
								"misc\/jquery-extend-3.4.0.js" : 1,
								"misc\/jquery.once.js" : 1,
								"misc\/drupal.js" : 1,
								"misc\/form.js" : 1,
								"sites\/all\/modules\/lazyloader\/jquery.lazyloader.js" : 1,
								"public:\/\/languages\/zh-hans_MGNxAABCo8FuXfHAWwvv78Fy5rUBtQGbntYeDIrMceY.js" : 1,
								"modules\/user\/user.js" : 1,
								"sites\/all\/themes\/dushu\/js\/script.js" : 1
							},
							"css" : {
								"modules\/system\/system.base.css" : 1,
								"modules\/system\/system.menus.css" : 1,
								"modules\/system\/system.messages.css" : 1,
								"modules\/system\/system.theme.css" : 1,
								"modules\/system\/system.admin.css" : 1,
								"modules\/comment\/comment.css" : 1,
								"sites\/all\/modules\/date\/date_api\/date.css" : 1,
								"sites\/all\/modules\/date\/date_popup\/themes\/datepicker.1.7.css" : 1,
								"modules\/field\/theme\/field.css" : 1,
								"modules\/node\/node.css" : 1,
								"modules\/search\/search.css" : 1,
								"sites\/all\/modules\/ubercart\/uc_order\/uc_order.css" : 1,
								"sites\/all\/modules\/ubercart\/uc_product\/uc_product.css" : 1,
								"sites\/all\/modules\/ubercart\/uc_store\/uc_store.css" : 1,
								"modules\/user\/user.css" : 1,
								"sites\/all\/modules\/views\/css\/views.css" : 1,
								"sites\/all\/modules\/lazyloader\/lazyloader.css" : 1,
								"sites\/all\/modules\/ctools\/css\/ctools.css" : 1,
								"sites\/all\/modules\/panels\/css\/panels.css" : 1,
								"sites\/all\/themes\/dushu\/css\/style.css" : 1,
								"sites\/all\/themes\/dushu\/css\/custom.css" : 1,
								"sites\/all\/themes\/dushu\/css\/custom1.css" : 1,
								"sites\/all\/themes\/dushu\/css\/custom2.css" : 1,
								"sites\/all\/themes\/dushu\/css\/custom3.css" : 1,
								"sites\/all\/themes\/dushu\/css\/fix-ie7.css" : 1,
								"sites\/all\/themes\/dushu\/css\/fix-ie6.css" : 1
							}
						},
						"jcarousel" : {
							"ajaxPath" : "\/jcarousel\/ajax\/views"
						},
						"urlIsAjaxTrusted" : {
							"\/user\/371504\/edit" : true
						},
						"password" : {
							"strengthTitle" : "\u5bc6\u7801\u5f3a\u5ea6\uff1a",
							"hasWeaknesses" : "\u589e\u5f3a\u4f60\u7684\u5bc6\u7801\uff1a",
							"tooShort" : "\u8bf7\u81f3\u5c11\u8bbe6\u4e2a\u5b57\u7b26",
							"addLowerCase" : "\u6dfb\u52a0\u5c0f\u5199\u5b57\u6bcd",
							"addUpperCase" : "\u6dfb\u52a0\u5927\u5199\u5b57\u6bcd",
							"addNumbers" : "\u6dfb\u52a0\u6570\u5b57",
							"addPunctuation" : "\u6dfb\u52a0\u6807\u70b9\u7b26\u53f7",
							"sameAsUsername" : "\u4f7f\u5176\u548c\u4f60\u7684\u7528\u6237\u540d\u4e0d\u540c",
							"confirmSuccess" : "\u662f",
							"confirmFailure" : "\u5426",
							"weak" : "\u5f31",
							"fair" : "\u4e2d\u7b49",
							"good" : "\u597d",
							"strong" : "\u5f3a\u8c03",
							"confirmTitle" : "\u5bc6\u7801\u5339\u914d\uff1a",
							"username" : "hy2005zyx"
						}
					});
	//--><!]]>
</script>
<!--[if lt IE 7]>
      <style type="text/css" media="all">@import url("//sites/all/themes/dushu/css/fix-ie6.css");</style>
  <![endif]-->
<!--[if IE 7]>
   <style type="text/css" media="all">@import url("//sites/all/themes/dushu/css/fix-ie7.css");</style>
  <![endif]-->
</head>
<body
	class="html not-front logged-in no-sidebars page-user page-user- page-user-371504 page-user-edit">
	<div id="skip-link">
		<a href="#main-content" class="element-invisible element-focusable">跳转到主要内容</a>
	</div>



	<!--首页头部-->

	<div th:replace="index::div#mininav"></div>

	<div th:replace="index::div#header-wrapper1"></div>

	<div class="class_nav"></div>
	<div class="breadcrumb" id="breadcrumb">
		<h2 class="element-invisible">你在这里</h2>
		<div class="breadcrumb">
			<a href="/">首页</a> » <a href="user_home.htm">用户中心</a>
		</div>
	</div>
	<div id="content">
		<a id="main-content"></a>
		<div class="region region-content">
			<div id="block-system-main" class="block block-system">


				<div id="editCount" class="content">
					<form action="user_edit.htm" method="post"
						id="user-profile-form" accept-charset="UTF-8">
						<div>
							<div id="edit-account" class="form-wrapper">
								<div class="form-item form-type-password form-item-current-pass">
									<label for="edit-current-pass">当前密码 </label>
									<input v-model="editC.oldpassword"
										autocomplete="off" type="password" id="edit-current-pass"
										name="current_pass" size="25" maxlength="128"
										class="form-text" />
									<div class="description">
										输入您当前的密码以修改 <em class="placeholder">电子邮件地址</em>或 <em
											class="placeholder">密码</em>。<a href="modify.htm"
											title="通过电子邮件重设密码。">重设密码</a>
									</div>
								</div>
								<div class="form-item form-type-textfield form-item-mail">
									<label for="edit-mail">电子邮件地址 <span
										class="form-required" title="此项必填。">*</span></label>
									<input v-model="editC.email"
										type="text" id="edit-mail" name="mail"
										value="" size="60" maxlength="254"
										class="form-text required" />
									<div class="description">需要一个合法的邮件地址。所有的系统邮件都会发送到此地址。此地址不对外公开，当需要获取新密码或获取特定消息及通知时会使用此邮件地址。</div>
								</div>
								<div class="form-item form-type-password-confirm form-item-pass">
									<div class="form-item form-type-password form-item-pass-pass1">
										<label for="edit-pass-pass1">密码 </label>
										<input v-model="editC.newpassword"
											class="password-field form-text" type="password"
											id="edit-pass-pass1" name="pass[pass1]" size="25"
											maxlength="128" />
									</div>
									<div class="form-item form-type-password form-item-pass-pass2">
										<label for="edit-pass-pass2">确认密码 </label> <input
											class="password-confirm form-text" type="password"
											id="edit-pass-pass2" name="pass[pass2]" size="25"
											maxlength="128" />
									</div>

									<div class="description">要更改当前用户密码，请重复输入新密码。</div>
								</div>
							</div>
							<input type="hidden" name="form_build_id"
								value="form-VIhMlbScI0emunDRN-fUCUgwkK1JFlhjtGO7EXzCrzI" />
							<input
								type="hidden" name="form_token"
								value="Gbh-ZIdi1ma9IRJ7YaznWbGKJZiuI86EaBCcC5UiyIU" />
							<input
								type="hidden" name="form_id" value="user_profile_form" />
<!--							<fieldset class="form-wrapper" id="edit-locale">-->
<!--								<legend>-->
<!--									<span class="fieldset-legend">语言设置</span>-->
<!--								</legend>-->
<!--								<div class="fieldset-wrapper">-->
<!--									<div class="form-item form-type-radios form-item-language">-->
<!--										<label for="edit-language">语言 </label>-->
<!--										<div id="edit-language" class="form-radios">-->
<!--											<div class="form-item form-type-radio form-item-language">-->
<!--												<input type="radio" id="edit-language-zh-hans"-->
<!--													name="language" value="zh-hans" checked="checked"-->
<!--													class="form-radio" /> <label class="option"-->
<!--													for="edit-language-zh-hans">Chinese,-->
<!--													Simplified(简体中文) (简体中文) </label>-->

<!--											</div>-->
<!--											<div class="form-item form-type-radio form-item-language">-->
<!--												<input type="radio" id="edit-language-en" name="language"-->
<!--													value="en" class="form-radio" /> <label class="option"-->
<!--													for="edit-language-en">English(英语) (English) </label>-->

<!--											</div>-->
<!--										</div>-->
<!--										<div class="description">本账户的电子邮件的默认语言</div>-->
<!--									</div>-->
<!--								</div>-->
<!--							</fieldset>-->
							<div class="form-actions form-wrapper" id="edit-actions">
								<input type="submit" id="edit-submit" name="op" value="保存"
									class="form-submit" />
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<script>
		var editC = new Vue({
			el:"#editCount",
			data:{
				editC:{oldpassword: "",email:"",newpassword:""}
			},
			methods:{
				editCount(){
					let params = new URLSearchParams();
					params.append("oldpwd",this.editC.oldpassword);
					params.append("email",this.editC.email);
					params.append("newpwd",this.editC.newpassword);
					axios.post("xm-user/editCount",params).then(res=>{
						if (res.data.code == 1) {
							alert("修改密码成功!");
							location.href = ("/");
						} else {
							alert(res.data.msg);
						}
					})
				}
			}
		})
	</script>
	<div class="clear"></div>
	<div th:replace="index::div#footer"></div>
	<a class="go_top" href="javascript:void(0);"></a>



	<div class="region region-page-bottom">
		<noscript>
			<style type="text/css" media="all">
img[data-src] {
	display: none !important;
}
</style>
		</noscript>
	</div>
	<script type="text/javascript">
	<!--//--><![CDATA[//><!--
		(function($) {
			Drupal.behaviors.lazyloader = {
				attach : function(context, settings) {
					$("img[data-src]")
							.lazyloader(
									{
										distance : 0,
										icon : "sites/all/modules/lazyloader/loader/loader-7.gif"
									});
				}
			};
		}(jQuery));
		//--><!]]>
	</script>
</body>
</html>
